import httpInstance from "@/utils/http";

// 接口getBannerAPI，获取banner轮播图数据
export function getBannerAPI(params = {}){
  // 默认为1  商品为2
  const { distributionSite = '1' } = params
    return httpInstance({
        url:'/home/banner',
        params:{
          distributionSite
        }
    })
}

// Home页面新鲜好物数据接口
export const findNewAPI = () => {
    return httpInstance({
      url:'/home/new'
    })
}

// Home页人气推荐数据接口
export const getHotAPI = ()=>{
  return httpInstance({
    url:'home/hot'
  })
}

// Home页人气产品列表数据接口
export const getGoodsAPI = ()=>{
  return httpInstance({
    url:'home/goods'
  })
}